/*
 * UIEventImp.cpp
 *
 *  Created on: Apr 18, 2009
 *      Author: wrice
 */

#include "DOMEventImp.h"
namespace DOMEventImp {


UIEventImp::UIEventImp(
		EventTarget * target,
		EventTarget * currentTarget,
		DOMString typeArg,
		bool canBubbleArg,
		bool cancelableArg,
		AbstractView * viewArg,
		long detailArg)
: EventImp(target, currentTarget, typeArg, canBubbleArg, cancelableArg)
{
	initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
}

void UIEventImp::initUIEvent(
		DOMString typeArg,
		bool canBubbleArg,
		bool cancelableArg,
		AbstractView * viewArg,
		long detailArg)
{
	initEvent(typeArg, canBubbleArg, cancelableArg);
	view_ = viewArg;
	detail_ = detailArg;
}

AbstractView * UIEventImp::getView() const {
	return view_;
}

long UIEventImp::getDetail() const {
	return detail_;
}

}
